ExtractParameter
Removes the specified parameter from this parameter set without calling the parameter's destructor.
ODBoolean ExtractParameter (in ParameterKey key, out void* param, out ParamDestructorUPP destructor);
key
- The name of the parameter to remove.
param
- A pointer to the parameter.
destructor
- A pointer to a programmer-defined destructor for the parameter.
- return value
kODTrue
if the parameter is in the set; otherwise,kODFalse
.DISCUSSION
You call this method to remove a parameter from aParameterSet
object. UnlikeRemoveParameter
, this method does not call the destructor associated with the parameter.The following type is used for parameter destructor functions. A parameter destructor takes two parameters: an environment pointer and a pointer of type
void*
; the function returns no value.
The
typedef void (* ParamDestructorProcPtr)(Environment* ev,
void* param);MyParamDestructor
programmer-defined function (page 194) illustrates the form of a parameter destructor.SEE ALSO
TheParameterKey
type (page 171).
TheGetParameter
method (page 396).
ThePutParameter
method (page 397).
TheRemoveParameter
method (page 398).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help